﻿@model List<iChip.Hostpots.Models.Log>
@{
    ViewBag.Title = "Lịch Sử Các Truy Cập";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<!-- BEGIN PAGE HEADER-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            Lịch Sử Truy Cập
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="/Admin">Tổng quan</a>
                <i class="icon-angle-right"></i>
            </li>
            <li><a href="/Admin/Logs">Lịch Sử Truy Cập</a></li>
            <li class="pull-right">
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>
<!-- END PAGE HEADER-->
<div class="row">
    <div class="col-md-12 col-sm-12">
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="portlet box red">
            <div class="portlet-title">
                <div class="caption"><i class="icon-globe"></i>Lịch Sử Truy Cập</div>

            </div>
            <div class="portlet-body">
                @if (Model != null && Model.Count > 0)
                {
                    <div class="table-responsive">
                        <table class="table table-hover" id="tbHotspots">
                            <thead>
                                <tr>
                                    <th style="width:8px;">#</th>
                                    <th>Tên Hotspot</th>
                                    <th>Mac User</th>
                                    <th>Phương Thức</th>
                                    <th>Thiết Bị</th>
                                    <th>Trình Duyệt</th>
                                    <th>Thời Gian</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var item in Model)
                                {
                                    <tr class="odd gradeX">
                                        <td>@item.Counter</td>
                                        <td>@item.Hotspot_Name</td>
                                        <td>@item.User_Mac</td>
                                        <td>@item.Method_Type</td>
                                        <td>@item.Log_Device</td>
                                        <td>@item.Log_Brower</td>
                                        <td>@item.Log_Time</td>
                                    </tr>

                                }
                            </tbody>
                        </table>
                    </div>

                }
            </div>
        </div>
        <!-- END EXAMPLE TABLE PORTLET-->
    </div>
</div>

